import { createWebHashHistory, createRouter } from 'vue-router'
import Home from '@/pages/home/index.vue'

const routes = [
    {
        path: '/',
        redirect: '/home'
    },
    {
        path: '/home',
        name: 'home',
        component: Home
    },
    {
        path: '/information',
        name: 'information',
        component: () => import('@/pages/information/index.vue')
    },
    {
        path: '/login',
        name: 'login',
        component: () => import('@/pages/login/index.vue')
    }
]
const router = createRouter({
    history: createWebHashHistory(),
    routes
})
export default router